/**
 * 
 */
package com.disys.examples;

import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @author Ubaid Raja
 * 
 */
public class CurrentData {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");
		// get current date time with Date()
		Date date = new Date();
		//String yourDate = dateFormat.format(date);
		//System.out.println(yourDate);
		long time = date.getTime();
		Timestamp ts =  new Timestamp(time);
		//System.out.println(ts.toString());
		
//		String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(Calendar.getInstance().getTime());
//		System.out.println(timeStamp );
		//Timestamp ts1 = new Timestamp(ts*1000);
//		String s = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss").format(ts);
//		System.out.println(s);
	
	}
	

}
